package com.bookcloud.java21.chapter4.类和对象的概念41;

public class Car {
  private String brand;
  private String color;
  private int speed;

  public void run() {
    System.out.println("车在跑");
  }

  public void stop() {
    System.out.println("车在停");
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }

  public String getBrand() {
    return brand;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public String getColor() {
    return color;
  }

  public void setSpeed(int speed) {
    this.speed = speed;
  }

  public int getSpeed() {
    return speed;
  }
}
